package jdk5.meta;

import static java.lang.System.out;

@BetaVersion
@Copyright("2005-2008 Tarena Technology")
@Author(@Name(first="George", last="wang"))
public class MyClass{
    public static void main(String[] args) throws Exception{
            boolean isBeta = MyClass.class.isAnnotationPresent(BetaVersion.class);
            out.println("MyClass is now in beta version? " + isBeta);

            String copyright = MyClass.class.getAnnotation(Copyright.class).value();
            out.println("Copyright " + copyright);

            Name name = MyClass.class.getAnnotation(Author.class).value();
			out.println("name="+name);
            out.println("Author: " + name.first() + " " + name.last());    
    }

}